//
//  NewCollectionViewCell.m
//  A_GOGO
//
//  Created by Liuiu on 16/1/19.
//  Copyright © 2016年 www.lanou3g.com. All rights reserved.
//

#import "NewCollectionViewCell.h"

@implementation NewCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //Timg
        _Timg = [[UIImageView alloc]init];
        [self.contentView addSubview:_Timg];
        [_Timg release];
        
        //title
        _title = [[UILabel alloc]init];
        _title.font = [UIFont fontWithName:@"Helvetica-Bold" size:14];
        _title.textAlignment = NSTextAlignmentCenter;
        
        [self.contentView addSubview:_title];
        [_title release];
        
    }
    return self;
}
//布局方法
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _Timg.frame = CGRectMake(0, 0, 285 / 4.5, 285 / 4.5);
    _Timg.layer.cornerRadius = 10;
    _title.frame = CGRectMake(-11, 285 / 4.5, 85, 15);
}


@end

